<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>DETAIL ORDER BILL</title>
<link rel="stylesheet" href="../../css/bootstrap/bootstrap.css"
	th:href="@{/css/bootstrap/bootstrap.css}" />
<style>
@font-face {
	font-family: 'Glyphicons Halflings';
	src: url('../fonts/glyphicons-halflings-regular.eot');
	src: url('../fonts/glyphicons-halflings-regular.eot?#iefix')
		format('embedded-opentype'),
		url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
		url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
		url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular')
		format('svg');
}
</style>
</head>
<body>
	<header></header>
	<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<div>
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#"><span class="glyphicon glyphicon-search"></span>Sign
							Up</a></li>
					<li><a th:href="@{/j_spring_security_logout}"><span
							class="glyphicon glyphicon-log-out"></span>Logout</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<section>
		<article class="container col-sm-10 col-sm-offset-1">
			<ol class="breadcrumb">
				<li><a th:href="@{/adminaccount/home}">Home</a></li>
				<li><a th:href="@{/restaurant/list}">Order</a></li>
				<li class="active">Detail</li>
			</ol>
			<div class="panel panel-success">
				<div class="panel-heading">DETAIL OF ORDER MANAGEMENT</div>
				<div class="panel-body">
					<div class="row">
						<div class="form-horizontal container col-sm-10 col-sm-offset-1">
							<div class="form-group">
								<strong class="col-sm-3">Order Code:</strong>
								<div class="col-sm-9">
									<span th:text="${order.orderCode}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Restaurant Name:</strong>
								<div class="col-sm-9">
									<span th:text="${order.restaurantName}"></span>
								</div>
							</div>
							<th:block th:if="${order.personalOrCompany} == true">
								<div class="form-group">
									<strong class="col-sm-3">Personal Or Company:</strong>
									<div class="col-sm-9">
										<span>Personal</span>
									</div>
								</div>
							</th:block>
							<th:block th:if="${order.personalOrCompany} == false">
								<div class="form-group">
									<strong class="col-sm-3">Personal Or Company:</strong>
									<div class="col-sm-9">
										<span>Company</span>
									</div>
								</div>
							</th:block>
							<div class="form-group">
								<strong class="col-sm-3">User Name:</strong>
								<div class="col-sm-9">
									<span th:text="${order.username}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">City Name:</strong>
								<div class="col-sm-9">
									<span th:text="${order.cityName}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">District Name:</strong>
								<div class="col-sm-9">
									<span th:text="${order.districtName}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Ward Name:</strong>
								<div class="col-sm-9">
									<span th:text="${order.wardName}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Email:</strong>
								<div class="col-sm-9">
									<span th:text="${order.email}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Phone Number:</strong>
								<div class="col-sm-9">
									<span th:text="${order.phoneNumber}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Reside:</strong>
								<div class="col-sm-9">
									<span th:text="${order.resideName}"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Total Price:</strong>
								<div class="col-sm-9">
									<span th:text="${order.totalPrice} + 'đ'"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Delivery Price:</strong>
								<div class="col-sm-9">
									<span th:text="${order.deliveryPrice} + 'đ'"></span>
								</div>
							</div>
							<div class="form-group">
								<strong class="col-sm-3">Note:</strong>
								<div class="col-sm-9">
									<span th:text="${order.note}"></span>
								</div>
							</div>
						</div>
					</div>
					<div class="row" style="margin-top: 30px;">
						<div th:unless="${#lists.isEmpty(listFood)}"
							class="col-sm-offset-1 col-sm-5">
							<table class="table table-hover">
								<thead>
									<tr>
										<th>Food Name</th>
										<th>Price</th>
										<th>Amount</th>
									</tr>
								</thead>
								<tbody>
									<tr th:each="lif : ${listFood}">
										<td th:text="${lif.foodName}"></td>
										<td th:text="${lif.price}"></td>
										<td th:text="${lif.amount}"></td>
									</tr>
								</tbody>
							</table>
						</div>
						<div th:unless="${#lists.isEmpty(listDrink)}"
							class="col-sm-offset-1 col-sm-5">
							<table class="table table-hover">
								<thead>
									<tr>
										<th>Drink Name</th>
										<th>Price</th>
										<th>Amount</th>
									</tr>
								</thead>
								<tbody>
									<tr th:each="lid : ${listDrink}">
										<td th:text="${lid.drinkName}"></td>
										<td th:text="${lid.price}"></td>
										<td th:text="${lid.amount}"></td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="row" style="margin-top: 25px;">
						<div class="col-sm-offset-1 col-sm-1">
							<button onclick="backPage()"
								class="btn btn-primary glyphicon glyphicon-backward">Back</button>
						</div>
						<div class="col-sm-offset-1 col-sm-2">
							<a>
								<button class="btn btn-primary glyphicon glyphicon-download">
									Download</button>
							</a>
						</div>
						<div class="col-sm-offset-1 col-sm-1">
							<a>
								<button class="btn btn-primary glyphicon glyphicon-trash">
									Delete</button>
							</a>
						</div>
					</div>
				</div>
				<div class="panel-footer"></div>
			</div>
		</article>
	</section>
	<footer class="container col-sm-12">
		<ol class="breadcrumb text-center">
			<li class="active"><p>@copyright - University Of Information
					Technology - Spring + hibernate + css3 + html5</p></li>
		</ol>
	</footer>
</body>
</html>